package com.ruoyi.project.zerocarbon.domain;

import com.ruoyi.common.utils.NumberUtils;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 专家评分对象 declare_ranking
 * 
 * @author ruoyi
 * @date 2021-07-31
 */
public class DeclareRanking extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    private Integer managementType;

    /** 申报id */
    @Excel(name = "申报id")
    private Long declarationId;

    /** 分数 */
    @Excel(name = "分数")
    private Integer score;

    private String realScore;

    /** 排名 */
    @Excel(name = "排名")
    private Integer ranking;

    /** 星级 */
    @Excel(name = "星级")
    private Integer star;

    /** 0评审；1:专家 */
    @Excel(name = "0评审；1:专家")
    private Integer type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeclarationId(Long declarationId) 
    {
        this.declarationId = declarationId;
    }

    public Long getDeclarationId() 
    {
        return declarationId;
    }
    public void setScore(Integer score) 
    {
        this.score = score;
    }

    public Integer getScore() 
    {
        return score;
    }
    public void setRanking(Integer ranking) 
    {
        this.ranking = ranking;
    }

    public Integer getRanking() 
    {
        return ranking;
    }
    public void setStar(Integer star) 
    {
        this.star = star;
    }

    public Integer getStar() 
    {
        return star;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public Integer getManagementType() {
        return managementType;
    }

    public void setManagementType(Integer managementType) {
        this.managementType = managementType;
    }

    public void setRealScore(String realScore) {
        this.realScore = NumberUtils.formatInt(this.score);
    }

    public String getRealScore() {
        return NumberUtils.formatInt(this.score);
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("declarationId", getDeclarationId())
            .append("score", getScore())
            .append("ranking", getRanking())
            .append("star", getStar())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
